package conversion;

class Conversion {
    public static void main(String args[]) {
	byte b;
	int i = 257;
	double d = 323.142;
		
	System.out.println("\nКонвертация int в byte.");
	b = (byte) i;
	System.out.println("i и b: " + i + " " + b);
		
	i = (int) d;
	System.out.println("d и i: " + d + " " + i);
		
	b = (byte) d;
	System.out.println("d и b: " + d + " " + b);
    }
}